// PageDlg.h : header file
//

#if !defined(AFX_PAGEDLG_H__91E1A9C0_3310_45FA_B546_8FDE173CE6C0__INCLUDED_)
#define AFX_PAGEDLG_H__91E1A9C0_3310_45FA_B546_8FDE173CE6C0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CPageDlg dialog
#include"Page1.h"
#include"Page2.h"
#include"Page3.h"
#include"Class\ColorStatic.h"
#define MYWM_NOTIFYICON WM_USER+1

class CPageDlg : public CDialog
{
// Construction
public:
	BOOL TaskBarModifyIcon(HWND hwnd, UINT uID, HICON hicon, LPSTR lpszTip);
	BOOL TaskBarDeleteIcon(HWND hwnd, UINT uID);
	BOOL TaskBarAddIcon(HWND hwnd, UINT uID, HICON hicon, LPSTR lpszTip);
	void Init_List();
	void ActivatePage(int nIndex);
	CPageDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CPageDlg)
	enum { IDD = IDD_PAGE_DIALOG };
	CColorStatic	m_infoBar;
	CListCtrl	m_ChoicesList;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPageDlg)
	public:
	virtual BOOL DestroyWindow();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	CPage1 m_page1;
	CPage2 m_page2;
	CPage3 m_page3;
	CImageList m_ImageList;
	CStatusBarCtrl m_wndStatusBar;


	// Generated message map functions
	//{{AFX_MSG(CPageDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnKeydownList1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);

	afx_msg void OnMyIconNotify(WPARAM wParam,LPARAM lParam);
	afx_msg LRESULT OnHotKey(WPARAM wp,LPARAM lp);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PAGEDLG_H__91E1A9C0_3310_45FA_B546_8FDE173CE6C0__INCLUDED_)
